/*
 * Middleware
 * Copyright (C) 2010/11
 * Riccardo Pulvirenti, Giuseppe Ravidà, Andrea Tino
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANDABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see http://www.gnu.org/licenses
 */

/*!
 * File: activity.cpp
 */

#include "activity.hpp"

using namespace middleware;

//-----------------------------------------------------------------------------
// Constructors and destructor
/* Default constructor */
Activity::Activity() {
	this->_workflow.clear();
	this->_sbn.clear();
}
/* Copy constructor */
Activity::Activity(const Activity& activity) {
	this->_workflow.clear();
	this->_sbn.clear();
	Activity::TaskCollectionConstIterator it_task;
	Activity::AddressCollectionConstIterator it_addr;
	for (it_task = this->_workflow.begin(); it_task < this->_workflow.end();
			it_task++)
		(this->_workflow).push_back(*it_task);
	for (it_addr = this->_sbn.begin(); it_addr < this->_sbn.end(); it_addr++)
		(this->_sbn).push_back(*it_addr);
}
/* Destructor */
Activity::~Activity() {
	this->_workflow.clear();
	this->_sbn.clear();
}
